function fisrtDecorator(targetClass: any) {
  const _instance = new targetClass()
  console.log('进入第一个装饰器', _instance)
}

@fisrtDecorator
class CustomerService {
  name: string = '11'
  constructor() {
    console.log('装饰器执行了构造函数')
  }

  buy() {
    console.log(this.name + '购买')
  }
  placeOrder() {
    console.log(this.name + '下单')
  }
}

export { CustomerService }
